Production Setup Guide: Integrations, Stripe & Super Admin
This guide outlines the steps to configure your production environment for Stripe billing, 3rd party integrations, and Super Admin access.
1. Configure Environment Variables (Vault Secrets)
You must set the following secrets in your cloud application. You can do this via the ATOM Cloud CLI:
atom-cli secrets set KEY=VALUEStripe Configuration
| Secret | Description |
|---|---|
STRIPE_SECRET_KEY | Your Stripe secret key (sk_live_...) |
STRIPE_PUBLISHABLE_KEY | Your Stripe publishable key (pk_live_...) |
STRIPE_WEBHOOK_SECRET | Your Stripe webhook signing secret (whsec_...) |
STRIPE_PRICE_ID_SOLO | Price ID for the Solo plan |
STRIPE_PRICE_ID_TEAM | Price ID for the Team plan |
STRIPE_PRICE_ID_ENTERPRISE | Price ID for the Enterprise plan |
3rd Party Integrations (OAuth)
| Secret | Description |
|---|---|
SALESFORCE_CLIENT_ID | Salesforce Connected App Client ID |
SALESFORCE_CLIENT_SECRET | Salesforce Connected App Client Secret |
HUBSPOT_CLIENT_ID | HubSpot App Client ID |
HUBSPOT_CLIENT_SECRET | HubSpot App Client Secret |
SLACK_CLIENT_ID | Slack App Client ID |
SLACK_CLIENT_SECRET | Slack App Client Secret |
GOOGLE_CLIENT_ID | Google OAuth Client ID |
GOOGLE_CLIENT_SECRET | Google OAuth Client Secret |
MICROSOFT_CLIENT_ID | Microsoft Azure AD Client ID |
MICROSOFT_CLIENT_SECRET | Microsoft Azure AD Client Secret |
Core App Configuration
| Secret | Description |
|---|---|
NEXTAUTH_URL | Your production URL (e.g., https://[tenant].atomagentos.com) |
JWT_SECRET | A secure random string for JWT signing |
---
2. Setup Super Admin Account
We have provided a script to seed the admin tables and create your Super Admin account in the production database.
Step 2a: Run the Setup Script Locally (Connected to Prod DB)
If you have DATABASE_URL (with production credentials) set locally, run:
python3 scripts/setup_super_admin.py <your-email> <secure-password> "<Your Name>"Step 2b: Run the Setup Script via Remote Console (Recommended)
You can run the script directly on your production machine:
atom-cli console
# Inside the console:
python3 scripts/setup_super_admin.py <your-email> <secure-password> "<Your Name>"
exit---
3. Verify Access
- Navigate to
https://your-domain.com/auth/signin. - Login with your admin email and password.
- You should be redirected to the Super Admin Dashboard.
5. Detailed Configuration Guides
For more in-depth setup instructions, refer to the following documents:
- **Stripe Setup Guide**: Product/price creation and metered billing details.
- **OAuth Setup Guide**: Redirect URIs and credential management for 3rd party integrations.
- **Marketing & Pricing Strategy**: Advice on Managed AI margins and BYOK positioning.